package com.leinao.media.callback;

import com.leinao.media.sdk.dh.lib.NetSDKLib;
import com.sun.jna.Pointer;

/**
 * 大华断线重连回调函数
 *
 * @author zhangyu
 */
public class DhDisConnectCallBack implements NetSDKLib.fDisConnect {

    /**
     * 实例化SDK
     */
    public static NetSDKLib DH_NET_SDK = NetSDKLib.NETSDK_INSTANCE;

    @Override
    public void invoke(NetSDKLib.LLong lLoginID, String pchDVRIP, int nDVRPort, Pointer dwUser) {
        System.out.println("设备：" + pchDVRIP + ",重连中...");
        DH_NET_SDK.CLIENT_StartListenEx(lLoginID);
    }
}